import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { <%= singular(classify(name)) %> } from './<%= singular(name) %>.entity';
import { <%= classify(name) %>Service } from './<%= name %>.service';
import { <%= classify(name) %>Controller } from './<%= name %>.controller';

@Module({
  imports: [TypeOrmModule.forFeature([<%= singular(classify(name)) %>])],
  providers: [<%= classify(name) %>Service],
  exports: [<% if (!skipExport) { %><%= classify(name) %>Service<% } %>],
  controllers: [<%= classify(name) %>Controller],
})
export class <%= classify(name) %>Module {}
